<script>
import AppNav from "@/components/AppNav.vue";

export default {
    name: "App",
    components: {AppNav},
    data(){
        return {
            hideNav:["login","noFound"],
            // isShowNav:true
        }
    },
    updated() {
        // this.isShowNav = !this.hideNav.includes(this.$route.name)
    },
    mounted(){
        // this.isShowNav = !this.hideNav.includes(this.$route.name)
    }
}
</script>

<template>
    <div class="container">
<!--        <AppNav v-if="isShowNav"></AppNav>-->
        <AppNav v-if="!hideNav.includes($route.name)"></AppNav>
        <router-view></router-view>
    </div>
</template>

<style scoped>
    .container{
        text-align: center;
    }
</style>